$OpenBSD: patch-kdm_config_def,v 1.6 2016/07/16 10:38:50 zhuk Exp $
OpenBSD specifics.
--- kdm/config.def.orig	Fri Jun 26 06:17:21 2015
+++ kdm/config.def	Wed Jul 13 21:30:55 2016
@@ -29,7 +29,11 @@
 #define RCVERMAJOR 2
 #define RCVERMINOR 4
 
-#define KDMCONF KDE_CONFDIR "/kdm"
+#if defined(__OpenBSD__)
+# define KDMCONF "${SYSCONFDIR}/kdm"
+#else
+# define KDMCONF KDE_CONFDIR "/kdm"
+#endif
 #define KDMDATA KDE_DATADIR "/kdm"
 
 #include <sys/param.h> /* for #define BSD */
@@ -40,6 +44,9 @@
 #elif defined(__linux__)
 # define HALT_CMD	"/sbin/shutdown -h -P now"
 # define REBOOT_CMD	"/sbin/shutdown -r now"
+#elif defined(__OpenBSD__)
+# define HALT_CMD	"/sbin/halt -p"
+# define REBOOT_CMD	"/sbin/shutdown -r now"
 #elif defined(BSD)
 # define HALT_CMD	"/sbin/shutdown -p now"
 # define REBOOT_CMD	"/sbin/shutdown -r now"
@@ -1036,7 +1043,7 @@ Key: GreeterUID
 Type: string
 Default: ""
 User: core
-Instance: "kdm"
+Instance: "_kdm"
 Update: upd_greeteruid
 Comment: &
 Description:
@@ -1045,7 +1052,7 @@ Description:
 
 Key: DataDir
 Type: path
-Default: *"/var/lib/kdm"
+Default: *"/var/kdm"
 User: greeter
 Instance: #""
 Update: upd_datadir/1
@@ -1435,7 +1442,7 @@ Key: ServerUID
 Type: string
 Default: ""
 User: core
-Instance: #:*/"_x11"
+Instance: :*/"_x11"
 Comment: &
 Description:
  The user the &X-Server; should run as. Empty results in <systemitem class="username">root</systemitem>.
